'use strict';
const uniID = require('__UNI__C30DA00')
exports.main = async function(event,context) {
  // 如下旧写法依然支持
    // const res = await uniID.loginByWeixin(event.code)
    const res = await uniID.loginByWeixin({
    code: event.code
  })
    return res
}
